package cn.iocoder.yudao.module.crm.controller.admin.task.vo.taskcontent;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - CRM 任务单内容关联新增/修改 Request VO")
@Data
public class TaskContentSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "26340")
    private Long id;

    @Schema(description = "任务单ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15833")
    @NotNull(message = "任务单ID不能为空")
    private Long taskId;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "输入内容方式（1为富文本，2为附件）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "输入内容方式（1为富文本，2为附件）不能为空")
    private String inputMethod;

    @Schema(description = "详情")
    private String details;

}